home *** CD-ROM | disk | FTP | other *** search
-
- #if __option(double_8) || !__option(native_fp)
- #error
- /*
- FormatVal assumes "double" is a SANE 80-bit extended value. You need to
- turn off "8-byte doubles" and turn on "Native floating-point format" on
- the Options dialog under "Compiler Settings."
-
- If you want "double" to be something else, you'll need to modify FormatVal
- to convert its "x" argument to an extended80.
- */
- #endif
-
-
- /* New names for Script Manager routines not yet in Apple's H files */
- #define FormatRecToString Format2Str
- #define StringToExtended FormatStr2X
- #define ExtendedToString FormatX2Str
- #define StringToFormatRec Str2Format
- #define GetIntlResourceTable IUGetItlTable
-
-
- OSErr FormatVal( double x, short formatID, StringPtr formattedX );
-
- /*
- Parameters
- ==========
- double x -- the value to be formatted
- short formatID -- ID of 'FMAT' resource to be used for formatting
- StringPtr formattedX -- the result; empty string if return value != noErr
-
- Returns
- =======
- noErr -- all is ok
- paramErr -- default number parts table not found
- resNotFound -- 'FMAT' resource not found
- positive -- a FormatStatus code
-
-
- -- Michael Hecht (Michael_Hecht@mac.sas.com)
- August 18, 1993
- */